#ifndef GAMESCENE_H_
#define GAMESCENE_H_

#include "cocos2d.h"

USING_NS_CC;

class Scores;
class Game: public CCLayer {
private:
	const int ghostTag;
	const int projectileTag;
	CCPoint gunPosition;
	CCSprite *pGun;
	Scores *pScores;
	bool running;
	float offX;
	float offY;
	float angleRadians;
	CCSize visibleSize;
	int minY;
	int maxY;
	int left;
	int right;
	int minV;
	int maxV;
	CCArray *pGhosts;
	CCArray *pProjectiles;
public:

	virtual bool init();

	static CCScene* scene();

	void menuBackCallback(CCObject* pSender);

	CREATE_FUNC(Game);

	void ccTouchesBegan(CCSet *pTouches, CCEvent * pEvent);

	void spriteMoveFinished(CCNode *sender);

	void fire(CCNode *sender);

	Game();
	virtual ~Game();

	void gameLogic(float dt);

	void ghostMoveFinished(CCNode *sender);

	void addGhost();

	void update(float dt);

	void actionBombEnd(CCNode *sender);
};

#endif /* GAMESCENE_H_ */
